package com.hdl.service.impl;

import java.sql.SQLException;
import java.util.List;

import com.hdl.dao.SysRoleDao;
import com.hdl.dao.impl.SysRoleDaoImpl;
import com.hdl.entity.SysRole;
import com.hdl.service.RoleService;

public class RoleServiceImpl implements RoleService{
private	SysRoleDao sys=new SysRoleDaoImpl();

	@Override
	public SysRole select(Integer roleid)  {
		return sys.select(roleid) ;
	}

	@Override
	public List<SysRole> selectByMode() throws SQLException  {
	
		return sys.selectt(0, 30);
	}

}
